<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:o="http://openfaces.org/"
	xmlns:m="http://www.ol4jsf.org"
	xmlns:s="http://jboss.com/products/seam/taglib"
	template="/WEB-INF/esquema/plantillaworkflow.xhtml">


	<ui:define name="mainControls">
		<h:outputText value="Opciones" />
		<h:outputText value="     " />
		<h:panelGroup>
			<o:commandButton value="#{messages['FINISH']}" onclick="goNext();"/>
		</h:panelGroup>
	</ui:define>

	<ui:define name="customContent">
		<ui:remove>
		#{interactiveViewerHelper.setShowRightsToolbox(false)}
		#{interactiveViewerHelper.setShowRestrictionsToolbox(false)}
		#{interactiveViewerHelper.setShowResponsibilitiesToolbox(false)}
		#{interactiveViewerHelper.setShowDataToolbox(false)}
		#{interactiveViewerHelper.setShowSpatialAnalysisToolbox(false)}
		#{interactiveViewerHelper.setShowHelpToolbox(false)}
		#{interactiveViewerHelper.setShowTitle(false)}
		#{interactiveViewerHelper.setBorderEditMode('CREATE')}
		#{interactiveViewerHelper.setShowSaveModificationButtons(true)}
		#{interactiveViewerHelper.setAllowEditing(true)}
		
		#{interactiveViewerHelper.setBorderShapeExpr('buildingPermitHelper.permit.buildingUnit.shape')}
		#{interactiveViewerHelper.setCreateZoneMode('SET_SHAPE_FIELD')}

		#{interactiveViewerHelper.setSelectedZone(buildingPermitHelper.permit.selectedZone)}
		</ui:remove>
		
		<ui:include src="/viewer/includes/sideContentIncl.xhtml" />
	</ui:define>

	<ui:define name="body">
		<style type="text/css">
			.introCol1 {
				vertical-align:top;
				width:30%;
			}
			.introCol2 {
				vertical-align:top;
				width:70%;
			}
		</style>
		
		<div align="center">
			<div align="center">
				<br/>
				<strong>#{messages['building_permit.start_header']}</strong>
				<rich:separator lineType="solid"/>
				<br/>
				HEY!!
				<strong>#{digitizationHelper.title}!</strong>
				<rich:separator lineType="solid"/>
				<br/>
				<br/>
				<h:outputText value="Geometria de la nueva edificacion" style="font-size:medium;font-weight:bold;"/>
			</div>
			<rich:separator lineType="solid"/>
			<br />
			<table style="width:100%">
				<tr>
					<th style="width:20%">Parcela seleccionada</th>
					<th>Digite edificacion</th>
				</tr>
				<tr>
					<td valign="top">
						<ui:include src="/WEB-INF/includes/zoneInfoIncl.xhtml">
							<ui:param name="zone" value="#{buildingPermitHelper.permit.selectedZone}" />
							<ui:param name="noZoneMsg" value="#{messages['permit.no_zone_selected']}" />
							<ui:param name="width" value="100%" />
						</ui:include>
					</td>
					<td valign="top">
						<ui:include src="/viewer/includes/mapContentIncl.xhtml" />
					</td>
				</tr>
			</table>
			<br />
			<br />
			<br />
			
			<br />
			<br />
		</div>
	</ui:define>
</ui:composition>
